package com.caishi.lkx.user.model;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.zzw.common.entity.impl.BaseEntity;
import lombok.*;

import java.util.Map;

/**
 * @Author huangpeng
 * @Description
 * @Date 2022/5/25 9:52
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "cu_user_question_records", autoResultMap = true)
public class UserQuestionRecordsModel extends BaseEntity<UserQuestionRecordsModel> {

    private String userId;

    private Long categoryId;

    @TableField(value = "question_count", typeHandler = FastjsonTypeHandler.class)
    private Map<String, JSONObject> questionCount;

}
